import request from '@/utils/request'

export function bannerList(query) {
    return request({
        url: `/banner/list`,
        method: 'get',
        params: query
    })
}

export function menuList(query) {
    return request({
        url: `/menu/list`,
        method: 'get',
        params: query
    })
}

export function saveData(data) {
    return request({
        url: '/system/save',
        method: 'post',
        data
    })
}

export function delData(id) {
    return request({
        url: `/system/del/${id}`,
        method: 'delete',
    })
}